<?php
namespace app\admin\services;
use app\common\services\BaseService;
use app\common\util\Assert;

class PlateformUserService extends BaseService
{
    public function stopUser($data){
        Assert::notEmpty($data,['id']);
        $this->getModelInstance()->where(['id'=>$data['id']])->save(['is_stop'=>intval($data['is_stop'])]);
        return [true];
    }
}